package lch.dao;

import com.github.pagehelper.Page;
import lch.pojo.Setmeal;

import java.util.List;
import java.util.Map;

/**
 * @author lch
 * @date 2019-12-20 18:57
 */
public interface SetmealDao {
    void add(Setmeal setmeal);

    void setSetmealAndCheckGroup(Map map);

    Page<Setmeal> findByCondition(String queryString);

    List<Setmeal> findAll();

    Setmeal findById(Integer id);

    List<Map<String, Object>> findSetmealCount();


    Integer findIdByName(String setmeal_name);


    List<Integer> findCheckgroupIdsBySetmealId(Integer id);

    void edit(Setmeal setmeal);

    void deleteAssocication(Integer id);

}
